package cn.huiyunche.base.service.enums;

/**
 * 同城订单 支付角色枚举
 *
 * @author lm
 */
public enum SOrderPayRoleEnum {

    MYSELFPAY(10, "下单人付款"),
    OTHERPAY(20, "其他商户付款"),;

    private final int value;
    private final String text;

    SOrderPayRoleEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static SOrderPayRoleEnum getByValue(int value) {
        for (SOrderPayRoleEnum temp : SOrderPayRoleEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }

}